package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) UploadThirdToken(ctx context.Context, req *v1.UploadThirdTokenReq) (res *v1.UploadThirdTokenRes, err error) {
	res = &v1.UploadThirdTokenRes{}
	res.Token, err = service.SysUpload().UploadThirdToken(ctx, req.Drive)
	return
}
